<?php

class Properties {

	var $properties = array();

	function Properties ($properties){
		$handle = @fopen($properties, "r");
		if ($handle) {
			while (!feof($handle)) {
				$buffer = fgets($handle, 4096);
				list($key, $name) = explode('=', $buffer);
				$this->properties += array($key => rtrim($name));
			}
			fclose($handle);		
		}
	}
	
	function get($key){
		return $this->properties[$key];	
	}
}



?>